import 'package:json_annotation/json_annotation.dart';

part 'purchase_model.g.dart';

@JsonSerializable()
class CommodityModel {
  String? id;
  int? type;
  int? years;
  int? money;
  CommodityModel();

  factory CommodityModel.fromJson(Map<String, dynamic> json) =>
      _$CommodityModelFromJson(json);
  Map<String, dynamic> toJson() => _$CommodityModelToJson(this);
}
